package cn.rongdao.jrkabao.model.loan;

import com.mifengkong.frtools.http.request.HttpFunction;

import cn.rongdao.jrkabao.model.api.BaseSuDaiModel;
import io.reactivex.Observable;
import io.reactivex.Observer;

/**
 * Created by mc on 17/9/23
 */

public class CreditCardLoansRepaymentModel extends BaseSuDaiModel {
    public static CreditCardLoansRepaymentModel getInstance() {
        return getPresent(CreditCardLoansRepaymentModel.class);
    }
    public void execute(String amount,String product_id,String stages,Observer<String> observer) {
        addParamStrings("amount",amount);
        addParamStrings("product_id",product_id);
        addParamStrings("stages",stages);
        Observable<String> observable = mServletApi.getEstimatedRepayment(mParams).map(new HttpFunction<String>());
        toSubscribe(observable, observer);
    }
}
